package com.base;

public class getrd {
	
	public static void main(String [] args)
	{
		
		      String format = "|%1$-15s|%2$-5s|%3$-5s|\n";
		      System.out.format(format, "Doi tuyen", "tyle", "tyle");
		      String ex[] = { "~~~~~~~~~~~~~~", "~~~~~", "~~~~" };

		      System.out.format(String.format(format, (Object[])ex));
		      
		      
		      String str = "Manchester:7 23 \n";
		      str += "japan:72 13  \n";
		      str += "gfg Manchester1:72 13\n";
		      str += "123Manchester1:72 13";
		      String[] temp;
		      String delimiter = "\n";
		      temp = str.split(delimiter);
		      for(int i =0; i < temp.length ; i++)
		      {
		    	  
		    	  System.out.println(i+1 +" "+temp[i]);
		      }
	}
	 
}


